import i18n from '@/language/index'

export const t = i18n.global.t

export default function UserInfoModel(id, nickName,password,okPassword,email) {
    this.id = id;
    this.nickName = nickName;
    this.email = email;
    this.password = password;
    this.okPassword = okPassword;

    this.rules = {
        nickName: [
            {required: true, message: t('user.1'), trigger: 'blur'},
        ],
        email: [
            {required: true, message: t('user.2'), trigger: 'blur'},
        ]
    }
}